<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<form class="layui-form" action="">
    <div class="mainBox">
        <div class="main-container">
            
			{if !$action_up}
			<div class="layui-form-item">
				<label class="layui-form-label">客户</label>
				<div class="layui-input-block">
					<div class="layui-col-md8">
						<input type="text" id="search_input" class="layui-input search-input" verify="must" verify_tips="hide" url="{:U('customer.main/findname')}"/>
						<input type="hidden" name="cusid" verify="must" verify_tips="hide"/>
						<div class="search-list" id="customer">
							<dl></dl>
						</div>
					</div>
					<div class="layui-col-md4">
						<span>&nbsp;</span>
						<button type="button" class="pear-btn pear-btn-primary" id="customer-btn">搜索</button>
					</div>
				</div>
			</div>
			{/if}

			<div class="layui-form-item ">
				<label class="layui-form-label">索取方式</label>
				<div class="layui-input-block">
					{php}if(!$action_up) $model["gettype"]=1;{/php}
					{volist name="options.gettype_radio" id="v"}
					{if $v.id == $model.gettype}
					<input type="radio" name="gettype" title="{$v.val}" value="{$v.id}" checked>
					{else/}
					<input type="radio" name="gettype" title="{$v.val}" value="{$v.id}">
					{/if}
					{/volist}
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">色卡编号</label>
				<div class="layui-input-block">
				  <textarea name="card" placeholder="请输入色卡编号" class="layui-textarea" >{$model.card??''}</textarea>
				  <div class="layui-form-mid layui-word-aux">输入色卡编号，多个请用，号分开</div>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">剪样色号</label>
				<div class="layui-input-block">
				  <textarea name="sample" placeholder="请输入剪样色号" class="layui-textarea" >{$model.sample??''}</textarea>
				  <div class="layui-form-mid layui-word-aux">输入对应色卡和颜色，比如 9036#4，9022#25#3</div>
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">备注信息</label>
				<div class="layui-input-block">
				  <textarea name="remark" placeholder="请输入备注" class="layui-textarea" >{$model.remark??''}</textarea>
				</div>
			</div>

        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save" verify="submit">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<script>
	layui.use(['form', 'jquery', 'uploads','common','mycomm'], function () {
		let form = layui.form;
		let $ = layui.jquery;
		let common = layui.common;
		let mycomm = layui.mycomm;
	
		mycomm.editSubmit();

	});
</script>
{if !$action_up}
<script src="__TPL_JS__/cus-search.js"></script>
{/if}
{$LOAD_STYLE.bottom|raw}

</body>
</html>